package cn.etynit.dto;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.FutureOrPresent;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ActivityDto {
    @FutureOrPresent(message = "发布时间不能为空！")
    private Date time;
    @FutureOrPresent(message = "过期时间不能为空！")
    private Date expirationTime;
    @NotEmpty(message = "标题不能为空！")
    private String title;
    @NotEmpty(message = "活动内容不能为空！")
    private String details;
    private String img;
    @NotNull(message = "员工类型不能为空")
    private Integer type;
//    @NotNull(message = "员工id不能为空")
//    private Long employeeId;
//    @NotEmpty(message = "未登录噢！")
//    private String token;

}
